<?php
/**
 * Created by PhpStorm.
 *
 * Author : Traveler.
 * Time   : 2020/2/12 18:24
 * Company: Inner Mongolia Zhengzhi Network Technology Co., Ltd
 */

namespace app\admin\validate;


use think\Validate;

class StaffRole extends Validate
{
    /**
     * 当前验证规则
     * @var array
     */
    protected $rule = [
        'name'    => 'require|unique:ibms_staff_role',
    ];

    /**
     * 验证提示信息
     * @var array
     */
    protected $message = [
        'name' => [
            'require' => '角色名称不能为空',
            'unique'  => '角色名称已存在',
        ],
    ];
}